package com.qj.yantaishan.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qj.yantaishan.common.annotation.Excel;
import com.qj.yantaishan.common.core.domain.BaseEntity;

/**
 * 订单折扣对象 shanglala_order_discount
 * 
 * @author qihe
 * @date 2022-07-22
 */
public class OrderDiscount
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Long orderId;

    /** 用户UID */
    @Excel(name = "用户UID")
    private Long uid;

    /** 店铺ID（供货商店铺ID） */
    @Excel(name = "店铺ID", readConverterExp = "供=货商店铺ID")
    private Long storeId;

    /** 折扣 */
    @Excel(name = "折扣")
    private BigDecimal discount;

    /** 是否包邮，1：是包邮，0：不包邮 */
    @Excel(name = "是否包邮，1：是包邮，0：不包邮")
    private Integer isPostageFree;

    /** 邮费 */
    @Excel(name = "邮费")
    private BigDecimal postageMoney;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }
    public void setStoreId(Long storeId) 
    {
        this.storeId = storeId;
    }

    public Long getStoreId() 
    {
        return storeId;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setIsPostageFree(Integer isPostageFree) 
    {
        this.isPostageFree = isPostageFree;
    }

    public Integer getIsPostageFree() 
    {
        return isPostageFree;
    }
    public void setPostageMoney(BigDecimal postageMoney) 
    {
        this.postageMoney = postageMoney;
    }

    public BigDecimal getPostageMoney() 
    {
        return postageMoney;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("uid", getUid())
            .append("storeId", getStoreId())
            .append("discount", getDiscount())
            .append("isPostageFree", getIsPostageFree())
            .append("postageMoney", getPostageMoney())
            .toString();
    }
}
